#include "craft_logic_interface.h"
#include "punch_logic_control.h"
static CPunchLogicControl *only_craft_logic = NULL;
CraftLogicApi int CraftLogic::CraftLogic()
{
	if (only_craft_logic == NULL)
	{
		only_craft_logic = new CPunchLogicControl;
	}
	only_craft_logic->LoopRun();
	return 0;
}

CraftLogicApi void CraftLogic::deleteInstance()
{
// 	CPunchLogicControl::deleteInstance();
	if(only_craft_logic!=NULL){

		delete only_craft_logic;
		only_craft_logic = NULL;
	}
}

